package com.jlpay.openapi.demo.clearing.settlement;


import com.jlpay.open.jlpay.sdk.java.model.settlement.request.AccBalanceReq;
import com.jlpay.open.jlpay.sdk.java.model.settlement.response.AccBalanceResp;
import com.jlpay.openapi.demo.JlpayOpenApiService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zhaomeixia
 * @since 2024/2/20
 */
public class AccBalanceQueryService {

    private static final Logger LOGGER = LoggerFactory.getLogger(AccBalanceQueryService.class);

    public static void main(String[] args) {
        AccBalanceReq accBalanceReq = AccBalanceReq.builder()
                .orgNo("123456")
                .merchNo("849584358120018")
                .acctType("01")
                .build();
        // 发送请求
        AccBalanceResp accBalanceResp = JlpayOpenApiService.clearingService()
                .post(accBalanceReq, AccBalanceResp.class);
        LOGGER.info("结算资金查询响应:{}", accBalanceResp);
    }
}
